<%--
  Created by IntelliJ IDEA.
  User: GIE
  Date: 2015/12/14
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title></title>
</head>
<body>
<shiro:user>
    欢迎[<shiro:principal/>]登录， <a href="${pageContext.request.contextPath}/logout">退出</a>
</shiro:user>
<table border="1">
    <tr>
        <th>id</th>
        <th>username</th>
        <th>password</th>
    </tr>
    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>${user.password}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
